package com.yjz.docker;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class DockerLearnApplication {

    @GetMapping(value = "/docker")
    public String hello() {

        return "hello docker";
    }

    //该项目镜像启动后访问的地址 http://47.98.237.214:8081/docker

    public static void main(String[] args) {
        SpringApplication.run(DockerLearnApplication.class, args);
    }

}

